package com.example.demo.dto.SchoolCode;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotEmpty;

public class AddSchoolCodeRequestDTO {
    private String Code;
    private String SchoolName;
    // 其他属性及对应的 getter 和 setter 方法

    // 添加必要的参数校验注解
    @NotNull(message = "Code不能为空")
    public String getCode() {
        return Code;
    }
    @NotEmpty(message = "SchoolName不能为空")
    public String getSchoolName() {
        return SchoolName;
    }
    public void setCode(String Code) {
        this.Code = Code;
    }
    public void setSchoolName(String SchoolName) {
        this.SchoolName = SchoolName;
    }
}
